package com.cmc.cloud.cmclink.doc.api.document.req.si;

import com.cmc.cloud.cmclink.doc.api.document.req.AttachmentUpdateReqDto;
import com.cmc.cloud.cmclink.doc.api.document.req.RequirementsUpdateReqDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 周贤
 * @date 2025/11/5
 */
@Schema(description = "管理后台 - edi 无SO 创建提单VO")
@Data
@EqualsAndHashCode()
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@Valid
public class BlnoEdiConfirmDto {

    @Schema(description = "提单主信息主表数据",requiredMode = Schema.RequiredMode.REQUIRED)
    @Valid
    @NotNull(message = "提单主信息不可为空")
    private BlnoBaseInfoEdiDto baseInfoEdiDto;

    @Schema(description = "提单航线船期信息",requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "提单航线船期信息不可为空")
    private List<BlnoVslvoyUpdateReqDto> blnoVslvoys;

    @Schema(description = "提单指定支付方式信息",requiredMode = Schema.RequiredMode.REQUIRED)
    private List<BlnoPaymentUpdateReqDto> blnoPayments;

    @Schema(description = "订舱特殊要求")
    private List<RequirementsUpdateReqDto> reqVOList;

    @Schema(description = "提单附件信息")
    private List<AttachmentUpdateReqDto> attachmentReqVO;

    @Schema(description = "提单收发通信息",requiredMode = Schema.RequiredMode.REQUIRED)
    private List<BlnoScnUpdateReqDto> blnoScns;

    @Schema(description = "提单货物信息",requiredMode = Schema.RequiredMode.REQUIRED)
    private List<BlnoCargoUpdateReqDto> blnoCargos;

    @Schema(description = "提单箱信息",requiredMode = Schema.RequiredMode.REQUIRED)
    private List<BlnoCntrUpdateReqDto> blnoCntrs;

}
